package com.share.common.utils.plugin.applicationEvent.example;

import org.springframework.stereotype.Component;

import com.share.common.utils.plugin.applicationEvent.EventHookSupport;


@Component
public class SendEmailEventHook extends EventHookSupport<SendEmailEvent>{

	
	/**
     * 初始化时获取插件对应的自定义EventListenerPlugin
     */
    @Override
    public void init() {
        this.plugins = getPlugins(SendEmailEventListenerPlugin.class);
    }

    @Override
    public void onApplicationEvent(SendEmailEvent event) {
        super.onEvent(event);
    }
}
